package com.moto.service;

import java.util.List;

import com.moto.bean.PostsFriendBean;
import com.moto.entity.PostsFriend;
/**
 * 组队贴
 * @author lixunhui
 *
 */
public interface PostsFriendService {
	
	int deleteByPrimaryKey(String pId);

    int insert(PostsFriend friend);

    int insertSelective(PostsFriend friend);

    PostsFriend selectByPrimaryKey(String pId);
    
    PostsFriend selectByPostsId(String postsId);

    int updateByPrimaryKeySelective(PostsFriend friend);

    int updateByPrimaryKey(PostsFriend friend);
    /**
     * 查询所有
     * @param postsArea
     * @return
     */
	List<PostsFriendBean> getAll(String postsArea);

	int deleteByPostsId(String postsId);
}
